<div class="layui-card">
    <div class="layui-card-body">
        <form class="layui-form" action=""  method="post" id="cp-form">.
            <div class="layui-form-item">
                <label class="layui-form-label">所属层级 <span class="request-tips">*</span></label>
                <div class="layui-input-inline">
                    <input type="hidden" name="pid" value="0">
                    <input type="text" placeholder="顶级分类" data-url="{:url('question/admin.questcate/addcategory')}" class="layui-input menuLevel">
                </div>
            </div>
            <div class="layui-form-item">
                <label class="layui-form-label">分类名称 <span class="request-tips">*</span></label>
                <div class="layui-input-inline">
                    <input type="text" name="name" required  lay-verify="required" placeholder="分类名称" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block">
                    <div class="layui-text">带 * 号的为必填项</div>
                    <button class="layui-btn" lay-submit lay-filter="formDemo">立即提交</button>
                    <a href="javascript:history.go(-1);" class="layui-btn layui-btn-primary" >返回</a>
                </div>
            </div>
        </form>
    </div>
</div>
